<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>优永动助手 - 日志</title>
    <link rel="stylesheet" href="/layui/css/layui.css" media="all">
    <link rel="stylesheet" href="https://cdn.staticfile.org/font-awesome/4.7.0/css/font-awesome.css">
    <script src="https://cdn.staticfile.org/jquery/1.10.2/jquery.min.js"></script>
    <script type="text/javascript" src="/layui/layui.all.js"></script>
    <link rel="stylesheet" href="/css/log.css">
</head>
<body>

<div class="layui-row search-main log-title">
    日志
</div>


<div class="layui-row log-main">

    <div class="layui-row log-box" th:each="day:${dayLogVOS}">

        <div class="layui-row log-date" th:text="${#dates.format(day.showdate,'yyyy-MM-dd')}">
            2021-02-03
        </div>

        <div class="layui-row log-info">

            <div class="layui-row log-info-item" th:each="log:${day.logs}">
                <div class="layui-col-xs2">
                    <img src="/images/d-icon.png" th:src="${log.jiaoyitype}=='1'?'/images/d-icon.png':'/images/u-icon.png'"  width="60px" alt="">
                </div>
                <div class="layui-col-xs8" style="word-break: break-all;">
                    <div class="layui-row" >

                        <span th:text="${log.bizhongname}+' - '"></span>
                        <span th:text="${log.jiaoyitype}==0?'类型：无：':'类型：'"></span>
                        <span th:if="${log.jiaoyitype}!=0" th:text="${log.jiaoyitype}==1?'买进':'卖出'"></span>
                        <span th:text="' - 内容：'+${log.content}"></span>
                        <span th:text="' - 数量:'+${log.num}"></span>
                        <span th:text="' - 金额:'+${log.chengjiaojia}"></span>
                        <span th:text="' - 备注:'+${log.beizhu}"></span>
                    </div>
                    <div class="layui-row log-time" th:text="${#dates.format(log.createtime,'HH:mm:ss')}">12:28:35</div>
                </div>
            </div>


        </div>

    </div>
    <div class="layui-row log-end-tip">
        没有更多了
    </div>


</div>

<div th:replace="index::footer"></div>





    <script type="text/javascript">


        $(function () {

            //批量设置的按钮
            $("#open-foot-btn").click(function () {

                var show = $(this).attr("show");
                if (show == 1) {//1  显示
                    $(this).attr("show", 0);
                    $(".footer-btn-main").removeClass("footer-btn-main-hidden");
                    $(".footer-top").removeClass("footer-top-hidden");
                } else {//0  隐藏

                    $(this).attr("show", 1);
                    $(".footer-btn-main").addClass("footer-btn-main-hidden");
                    $(".footer-top").addClass("footer-top-hidden");
                }

            });

        });

        //轮播
        layui.use(['carousel', 'form'], function () {
            var carousel = layui.carousel
                , form = layui.form;

            //图片轮播
            carousel.render({
                elem: '#test1'
                , width: '100%'
                , arrow: 'always' //始终显示箭头
                , height: '420px'
                , interval: 5000
            });
        });
        //选项卡
        layui.use('element', function () {
            var $ = layui.jquery
                , element = layui.element; //Tab的切换功能，切换事件监听等，需要依赖element模块
        });

    </script>

</body>
</html>